/**
 * Created by yongwang on 2015/8/29.
 * hash改变检测
 */
$(window).bind('hashchange', function() {
    if(location.hash == "#/login" || location.hash == "" || location.hash == "#/"){
        //sessionStorage.removeItem("leftMenuData");
        $("#right_content").css("width","100%");
        $(".left-nav").css("display","none");
        $("#menu_control_display").css("display","none");
        $("#user_message").css("display","none");
    }
});

if(!(location.hash == "#/login" || location.hash == "" || location.hash == "#/")){
    document.addEventListener("DOMContentLoaded",function(){
        $("#user_message").css("display","block");//显示用户信息
    },false);
}